{% extends "base.html" %} 

{% block content %}
<div class="wrapper wrapper-content animated fadeInRight col-sm-6">
    <h1 id="grp-admin-title">主机【{{ name }}】详细信息</h1>
   
    {% if error_message %}
    <div class="alert alert-danger text-center">{{ error_message }}</div>
    {% endif %}
   
    <table class="table table-striped table-bordered table-hover "  id="editable" >
        {% for key , value in detail_dict.items %}
        <tbody>
            <tr>
                <th>{{ key }}</th>
                {%  if value == None %}
                <td></td>
                {% else %}
                
				{% autoescape off %}
                    <td>{{ value }}</td>
				{% endautoescape %}

                {% endif %}
            </tr>
        </tbody>
    {% endfor %}
    </table>

    </br>
    </br>
    <a href="/inventory/edit?name={{ name }}"><button type="button" class="btn btn-sm btn-warning" >编辑</button></a>
    <a href="/inventory/del?name={{ list.0 }}"><button type="button" class="btn btn-sm btn-warning" >删除</button></a>
    <a href="/inventory/list"><button type="button" class="btn btn-sm btn-primary" >返回</button></a>
</div>
{% endblock%}
